{% extends 'base.html' %}

{% block title %}You are going to be redirect. Do you want to continue?{% endblock %}

{% block content %}
    {% if method == 'PAY' %}
        <form action="https://pay.piastrix.com/en/pay" method="POST">
    {% endif %}

    {% if method == 'INVOICE' %}
        <form action="{{ invoice_url }}" method="{{ invoice_method }}">
    {% endif %}

        {% for item in data %}
            <input type="hidden" name="{{ item[0] }}" value="{{ item[1] }}" />
        {% endfor %}


        <input type="submit" value="Continue..." />
    </form>
{% endblock %}